package com.prj.ufdm.demo.tutorial.despatterns.structural.proxy;

public class CalculatorServiceProxy implements CalculatorService {
	
	CalculatorService calculator = new CalculatorServiceImpl();
	
	@Override
	public long add(int i, int j) {
		System.out.println("代理");
		return calculator.add(i, j);
	}

	@Override
	public long minus(int i, int j) {
		System.out.println("代理");
		return calculator.minus(i, j);
	}

	@Override
	public long mult(int i, int j) {
		System.out.println("代理");
		return calculator.mult(i, j);
	}
}
